package com.homework.vehicle.Plane;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/26 19:35
 * @description
 */
public class AirLiner extends Plane{
    private String plane;

    public AirLiner() {
    }

    public AirLiner(String type, String plane) {
        super(type);
        this.plane = plane;
    }

    public String getPlane() {
        return plane;
    }

    public void setPlane(String plane) {
        this.plane = plane;
    }

    @Override
    public void atk() {
        System.out.println("无法攻击");
    }

    @Override
    public void getInfo() {
        System.out.print(getType()+plane);
    }

    @Override
    public String toString() {
        return "AirLiner{" +
                "plane='" + plane + '\'' +
                '}';
    }
}
